package com.lg.meng.widgets;

import android.content.Context;
import android.util.AttributeSet;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;


/**
 * Author: xx
 * Date: 2019/11/15
 * Description:
 */
public class LinearRecyclerView extends RecyclerView {

    public LinearRecyclerView(Context context) {
        super(context);
        init(context);
    }

    public LinearRecyclerView(Context context,  AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }

    public LinearRecyclerView( Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        init(context);
    }

    private void init(Context context) {
        setLayoutManager(new LinearLayoutManager(context));
    }
}
